</div><div id="footer">
<?php
$catids = get_all_category_ids();
foreach($catids as $id){
	// Display catname as link if category is child of 'temanummer'
	if(cat_is_ancestor_of(22, $id )){
	?>
	<ul><li><h3><a href="">
	<?php
	echo(get_cat_name($id));
	?></a></h3></li><?php
	// Get all posts from category
	$args = array(
		'numberposts'     => 50,
		'category' => $id
	);
	 $myPosts = get_posts( $args );
	 foreach( $myPosts as $post ) :	setup_postdata($post); ?>
	<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
	<?php endforeach;
 
	?></ul><?php
	}
	
}
?>
<div class="clear"/>
<!-- End of footer -->
</div>